home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / HIERSV.PAK / MAKEHELP.BAT < prev    next >
DOS Batch File  |  1997-05-06  |  2KB  |  64 lines

  1. @echo off
  2. REM -- First make map file from Microsoft Visual C++ generated resource.h
  3. echo // MAKEHELP.BAT generated Help Map file.  Used by HIERSVR.HPJ. >"hlp\hiersvr.hm"
  4. echo. >>"hlp\hiersvr.hm"
  5. echo // Commands (ID_* and IDM_*) >>"hlp\hiersvr.hm"
  6. makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\hiersvr.hm"
  7. echo. >>"hlp\hiersvr.hm"
  8. echo // Prompts (IDP_*) >>"hlp\hiersvr.hm"
  9. makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\hiersvr.hm"
  10. echo. >>"hlp\hiersvr.hm"
  11. echo // Resources (IDR_*) >>"hlp\hiersvr.hm"
  12. makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\hiersvr.hm"
  13. echo. >>"hlp\hiersvr.hm"
  14. echo // Dialogs (IDD_*) >>"hlp\hiersvr.hm"
  15. makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\hiersvr.hm"
  16. echo. >>"hlp\hiersvr.hm"
  17. echo // Frame Controls (IDW_*) >>"hlp\hiersvr.hm"
  18. makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\hiersvr.hm"
  19. REM -- Make help for Project hiersvr
  20.  
  21. if "%1" == "?" goto :Error
  22. if "%1" == "/?" goto :Error
  23. if "%1" == "-?" goto :Error
  24. if "%1" == "help" goto :Error
  25. if "%1" == "-help" goto :Error
  26. if "%1" == "/help" goto :Error
  27.  
  28.  
  29. if "%1" == "MAC" goto Mac
  30.  
  31. :Intel
  32. if not "%1" == "" goto :Error
  33. if not "%2" == "" goto :Error
  34.  
  35. echo Building Win32 Help files
  36. start /wait hcrtf -x hlp\hiersvr.hpj
  37. echo.
  38. if exist Debug\nul if exist hlp\hiersvr.hlp copy "hlp\hiersvr.hlp" Debug
  39. if exist Debug\nul if exist hlp\hiersvr.cnt copy "hlp\hiersvr.cnt" Debug
  40. if exist Release\nul if exist hlp\hiersvr.hlp copy "hlp\hiersvr.hlp" Release
  41. if exist Release\nul if exist hlp\hiersvr.cnt copy "hlp\hiersvr.cnt" Release
  42. if exist UniDebug\nul if exist hlp\hiersvr.hlp copy "hlp\hiersvr.hlp" UniDebug
  43. if exist UniDebug\nul if exist hlp\hiersvr.cnt copy "hlp\hiersvr.cnt" UniDebug
  44. if exist UniRelease\nul if exist hlp\hiersvr.hlp copy "hlp\hiersvr.hlp" UniRelease
  45. if exist UniRelease\nul if exist hlp\hiersvr.cnt copy "hlp\hiersvr.cnt" UniRelease
  46. goto :done
  47.  
  48. :Mac
  49. echo Building Macintosh Help files
  50. call hc35 hlp\hierMac.hpj
  51.  
  52. if %2x == x goto :done
  53. echo Copying to remote machine
  54. mfile copy -c MSH2 -t HELP "hierMac.hlp" %2
  55. goto :done
  56.  
  57. :Error
  58. echo Usage MAKEHELP [MAC [macintosh-path]]
  59. echo       Where macintosh-path is of the form:
  60. echo       ":<MacintoshName>:...:<MacintoshHelpFile>"
  61.  
  62. :done
  63. echo.
  64.